package edu.ustb.railwayticket.entity;

import java.util.Map;

public class Ticket {

    private Integer ticketNumber; // 票据编号
    private Integer ticketPrice; // 票价
    private Integer trainNumber; // 车次
    private Integer passengerNumber; // 乘客编号
    private Integer seatNumber; // 座位

    private String departure; // 出发地
    private String destination; // 目的地

    private String dueTime; // 出票时间
    private String departureTime; // 出发时间

    public Ticket(Integer ticketNumber, Integer ticketPrice, Integer trainNumber, Integer passengerNumber, Integer seatNumber, String departure, String destination, String dueTime, String departureTime) {
        this.ticketNumber = ticketNumber;
        this.ticketPrice = ticketPrice;
        this.trainNumber = trainNumber;
        this.passengerNumber = passengerNumber;
        this.seatNumber = seatNumber;
        this.departure = departure;
        this.destination = destination;
        this.dueTime = dueTime;
        this.departureTime = departureTime;
    }

    public Integer getPassengerNumber() {
        return passengerNumber;
    }

    public void setPassengerNumber(Integer passengerNumber) {
        this.passengerNumber = passengerNumber;
    }



    public Integer getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(Integer seatNumber) {
        this.seatNumber = seatNumber;
    }



    public void setTicketPrice(Integer ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    public String getDueTime() {
        return dueTime;
    }

    public void setDueTime(String dueTime) {
        this.dueTime = dueTime;
    }

    public Integer getTicketNumber() {
        return ticketNumber;
    }

    public void setTicketNumber(Integer ticketNumber) {
        this.ticketNumber = ticketNumber;
    }

    public double getTicketPrice() {
        return ticketPrice;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Integer getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(Integer trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

}
